import { NestFactory } from '@nestjs/core'
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'
import { AppModule } from './app.module'

async function bootstrap() {
  const app = await NestFactory.create(AppModule)


  const config = new DocumentBuilder()
    .setTitle('BEO_APP_API')
    .setDescription('项目描述')
    .setVersion('1.0')
    .build()
  const document = SwaggerModule.createDocument(app, config)
  SwaggerModule.setup('API', app, document)


  await app.listen(3000)


}

bootstrap()
